package ai.people.netmon.framework.domain.archives.request;

import ai.people.netmon.framework.model.request.PageKeyWordsRequest;
import lombok.Data;
import org.apache.commons.collections4.CollectionUtils;
import org.apache.commons.lang3.StringUtils;

import java.util.List;

/**
 * @author zhenglin
 * @date 2022/5/31
 */
@Data
public class GangGroupListRequest extends PageKeyWordsRequest {
    /**
     * 标签
     */
    private List<String> tags;

    /**
     * 危险程度
     */
    private Integer degreeOfDanger;

    /**
     *
     * @mock 此参数忽略不传
     */
    private String tagStr;

    public String getTagStr(){
        if (CollectionUtils.isNotEmpty(tags)) {
            return StringUtils.join(tags, ",");
        }
        return null;
    }
}
